package cxt.com.springcloud.controller;

import cxt.com.springcloud.pojo.CommonResult;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @Auther: ChengXiaotian
 * @Date: 2020-06-09 14:46
 * @Description:
 */
@RestController
public class PaymentController {


    @Value("${server.port}")
    private String serverport;
    @GetMapping("/payment/zk")
    public String getServerport(){
        return "springcloud with zookeeper"+serverport+"\t"+ UUID.randomUUID().toString();
    }
}
